package com.biz.ssm.service.impl;

import com.biz.ssm.base.BaseServiceImpl;
import com.biz.ssm.domain.AdminRole;
import com.biz.ssm.mapper.AdminRoleMapper;
import com.biz.ssm.service.AdminRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import java.util.List;


/**
 *
 * AdminRoleService
 *
 **/
@Service
public class AdminRoleServiceImpl extends BaseServiceImpl<AdminRole, Long , AdminRoleMapper> implements AdminRoleService {

	@Resource
	private AdminRoleMapper adminRoleMapper;

	@Override
	public AdminRoleMapper getMapper() {
		return adminRoleMapper;
	}

	@Override
	public List<AdminRole> findListByRole(Long roleId) {
		return adminRoleMapper.findListByRole(roleId);
	}

	@Override
	public List<AdminRole> findListByAdmin(Long adminId) {
		return adminRoleMapper.findListByAdmin(adminId);
	}
}
